<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NFT宠物养成 - Vocabuddy词友星球</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background: linear-gradient(135deg, #0891b2, #7e22ce);
            height: 100vh;
            margin: 0;
            padding: 0;
            color: white;
        }
        .app-container {
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            overflow: hidden;
        }
        .nav-bar {
            height: 60px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
        .tab-bar {
            height: 80px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            display: flex;
            justify-content: space-around;
            align-items: center;
            position: fixed;
            bottom: 0;
            width: 100%;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
        }
        .tab-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: rgba(255, 255, 255, 0.7);
            font-size: 12px;
            transition: all 0.3s ease;
        }
        .tab-item.active {
            color: #ffffff;
        }
        .tab-icon {
            font-size: 24px;
            margin-bottom: 4px;
            position: relative;
        }
        .tab-item.active .tab-icon::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 5px;
            height: 5px;
            background-color: #ffffff;
            border-radius: 50%;
        }
        .content {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            padding-bottom: 90px;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .pet-evolution-panel {
            width: 100%;
            max-width: 350px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
            margin-bottom: 20px;
        }
        .evolution-stages {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .evolution-stage {
            display: flex;
            flex-direction: column;
            align-items: center;
            opacity: 0.5;
            transition: all 0.3s ease;
        }
        .evolution-stage.active {
            opacity: 1;
            transform: scale(1.1);
        }
        .stage-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-bottom: 5px;
            font-size: 24px;
        }
        .stage-name {
            font-size: 12px;
            text-align: center;
        }
        .pet-model-container {
            position: relative;
            width: 200px;
            height: 200px;
            margin: 20px auto;
        }
        .pet-model {
            width: 100%;
            height: 100%;
            background: url('https://images.unsplash.com/photo-1614027164847-1b28cfe1df60?ixlib=rb-1.2.1&auto=format&fit=crop&w=300&q=80') center/cover;
            border-radius: 50%;
            box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
            position: relative;
            z-index: 2;
            transition: all 0.5s ease;
        }
        .attribute-ring {
            position: absolute;
            top: -20px;
            left: -20px;
            right: -20px;
            bottom: -20px;
            border-radius: 50%;
            border: 2px dashed rgba(255, 255, 255, 0.3);
            animation: rotate 20s linear infinite;
            z-index: 1;
        }
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        .attribute-point {
            position: absolute;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 18px;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
            transition: all 0.3s ease;
        }
        .attribute-point:hover {
            transform: scale(1.2);
            background: rgba(255, 255, 255, 0.2);
        }
        .attribute-tooltip {
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .attribute-point:hover .attribute-tooltip {
            opacity: 1;
        }
        .attribute-hearing { top: 0; left: 50%; transform: translateX(-50%); }
        .attribute-vocabulary { bottom: 30%; right: 0; }
        .attribute-memory { bottom: 30%; left: 0; }
        
        .pet-stats {
            width: 100%;
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
        }
        .stat-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .stat-value {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 5px;
        }
        .stat-label {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .accessories-section {
            width: 100%;
            max-width: 350px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        .section-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        .section-title i {
            margin-right: 10px;
        }
        .accessories-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }
        .accessory-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
        }
        .accessory-item.locked {
            opacity: 0.5;
        }
        .accessory-item.locked::after {
            content: '🔒';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 20px;
        }
        .accessory-item:hover {
            background: rgba(255, 255, 255, 0.1);
            transform: translateY(-5px);
        }
        .accessory-icon {
            font-size: 24px;
            margin-bottom: 5px;
        }
        .accessory-name {
            font-size: 12px;
            text-align: center;
        }
        .unlock-requirement {
            font-size: 10px;
            color: rgba(255, 255, 255, 0.6);
            text-align: center;
            margin-top: 5px;
        }
        
        /* 死亡状态设计 */
        .death-state {
            display: none; /* 默认隐藏 */
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.8);
            z-index: 100;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        .death-pet {
            width: 150px;
            height: 150px;
            background: #444;
            border-radius: 10px;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }
        .pixel-pet {
            position: absolute;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10"><rect x="2" y="2" width="2" height="2" fill="gray"/><rect x="6" y="2" width="2" height="2" fill="gray"/><rect x="4" y="6" width="2" height="2" fill="gray"/><rect x="2" y="4" width="6" height="2" fill="gray"/></svg>') center/contain no-repeat;
            filter: grayscale(100%);
        }
        .revival-countdown {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 10px;
        }
        .revival-message {
            text-align: center;
            margin-bottom: 20px;
            line-height: 1.5;
        }
        .revival-button {
            background: linear-gradient(135deg, #ef4444, #b91c1c);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 30px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
        }
        .revival-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
        }
        .planet-crack {
            position: absolute;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50,0 L45,40 L55,45 L50,100 L60,50 L45,55 Z" fill="none" stroke="white" stroke-width="1"/></svg>') center/cover no-repeat;
            opacity: 0.3;
            pointer-events: none;
        }
        
        /* 切换按钮 */
        .toggle-death-btn {
            position: absolute;
            bottom: 100px;
            right: 20px;
            background: rgba(239, 68, 68, 0.2);
            color: white;
            border: none;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 12px;
            cursor: pointer;
            z-index: 10;
        }
    </style>
</head>
<body>
    <div class="app-container">
        <div class="nav-bar">
            <div>
                <i class="fas fa-arrow-left mr-3"></i>
                <span>NFT宠物养成</span>
            </div>
            <div>
                <i class="fas fa-share-alt"></i>
            </div>
        </div>
        
        <div class="content">
            <div class="pet-evolution-panel">
                <div class="evolution-stages">
                    <div class="evolution-stage">
                        <div class="stage-icon">
                            <i class="fas fa-egg"></i>
                        </div>
                        <div class="stage-name">初始形态</div>
                    </div>
                    <div class="evolution-stage active">
                        <div class="stage-icon">
                            <i class="fas fa-dragon"></i>
                        </div>
                        <div class="stage-name">中级觉醒</div>
                    </div>
                    <div class="evolution-stage">
                        <div class="stage-icon">
                            <i class="fas fa-khanda"></i>
                        </div>
                        <div class="stage-name">完全体</div>
                    </div>
                </div>
                
                <div class="pet-model-container">
                    <div class="attribute-ring"></div>
                    <div class="pet-model"></div>
                    
                    <div class="attribute-point attribute-hearing">
                        <i class="fas fa-ear-listen"></i>
                        <span class="attribute-tooltip">听力: 65/100</span>
                    </div>
                    <div class="attribute-point attribute-vocabulary">
                        <i class="fas fa-book"></i>
                        <span class="attribute-tooltip">词汇量: 78/100</span>
                    </div>
                    <div class="attribute-point attribute-memory">
                        <i class="fas fa-brain"></i>
                        <span class="attribute-tooltip">记忆力: 82/100</span>
                    </div>
                </div>
                
                <div class="pet-stats">
                    <div class="stat-item">
                        <div class="stat-value">32</div>
                        <div class="stat-label">连续学习天数</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-value">487</div>
                        <div class="stat-label">已掌握单词</div>
                    </div>
                    <div class="stat-item">
                        <div class="stat-value">7</div>
                        <div class="stat-label">宠物等级</div>
                    </div>
                </div>
            </div>
            
            <div class="accessories-section">
                <div class="section-title">
                    <i class="fas fa-hat-wizard"></i>
                    <span>装备区</span>
                </div>
                
                <div class="accessories-grid">
                    <div class="accessory-item">
                        <div class="accessory-icon">👑</div>
                        <div class="accessory-name">皇冠</div>
                        <div class="unlock-requirement">连续学习30天</div>
                    </div>
                    <div class="accessory-item">
                        <div class="accessory-icon">🧠</div>
                        <div class="accessory-name">超脑</div>
                        <div class="unlock-requirement">记忆力达到80</div>
                    </div>
                    <div class="accessory-item">
                        <div class="accessory-icon">👓</div>
                        <div class="accessory-name">学者眼镜</div>
                        <div class="unlock-requirement">单词量500</div>
                    </div>
                    <div class="accessory-item locked">
                        <div class="accessory-icon">🎭</div>
                        <div class="accessory-name">变声面具</div>
                        <div class="unlock-requirement">听力达到90</div>
                    </div>
                    <div class="accessory-item locked">
                        <div class="accessory-icon">🔮</div>
                        <div class="accessory-name">预言水晶</div>
                        <div class="unlock-requirement">完成100个故事</div>
                    </div>
                    <div class="accessory-item locked">
                        <div class="accessory-icon">🌟</div>
                        <div class="accessory-name">星光翅膀</div>
                        <div class="unlock-requirement">达到完全体</div>
                    </div>
                </div>
            </div>
            
            <!-- 用于演示的死亡状态切换按钮 -->
            <button class="toggle-death-btn" id="toggleDeathBtn">显示死亡状态</button>
        </div>
        
        <div class="tab-bar">
            <div class="tab-item">
                <div class="tab-icon"><i class="fas fa-book"></i></div>
                <div>学习</div>
            </div>
            <div class="tab-item active">
                <div class="tab-icon"><i class="fas fa-planet-ringed"></i></div>
                <div>星球</div>
            </div>
            <div class="tab-item">
                <div class="tab-icon"><i class="fas fa-users"></i></div>
                <div>社交</div>
            </div>
            <div class="tab-item">
                <div class="tab-icon"><i class="fas fa-store"></i></div>
                <div>商店</div>
            </div>
        </div>
    </div>
    
    <!-- 死亡状态弹窗 -->
    <div class="death-state" id="deathState">
        <div class="planet-crack"></div>
        <div class="death-pet">
            <div class="pixel-pet"></div>
        </div>
        <div class="revival-countdown">23:59:59</div>
        <div class="revival-message">
            你的宠物因缺乏学习能量而陷入休眠状态。<br>
            星球正在崩裂，请尽快通过学习来恢复宠物的生命力！
        </div>
        <button class="revival-button">
            <i class="fas fa-bolt mr-2"></i> 立即复活 (消耗100星币)
        </button>
    </div>
    
    <script>
        // 死亡状态切换演示
        document.getElementById('toggleDeathBtn').addEventListener('click', function() {
            const deathState = document.getElementById('deathState');
            if (deathState.style.display === 'flex') {
                deathState.style.display = 'none';
                this.textContent = '显示死亡状态';
            } else {
                deathState.style.display = 'flex';
                this.textContent = '隐藏死亡状态';
            }
        });
    </script>
</body>
</html>